<?php

class	blogModel extends baseModel
{

	public function FetchAll()
	{
		$get =& $this->registry->db->select();
		$get->from('blog', 'id, post');
		$ret = $get->executeQuery();
		return $ret;
	}

	public function Post($message)
	{
		$this->registry->db->Insert('blog', 'post', $message);
	}
	
	public function Delete($id)
	{
		$this->registry->db->Delete('blog', 'id', $id);
	}
	
}

?>